package cn.lystudio.rohm_time_op.service;

import cn.lystudio.rohm_time_op.entity.dto.UserDepartmentDTO;
import cn.lystudio.rohm_time_op.entity.dto.UserInfoDTO;
import cn.lystudio.rohm_time_op.entity.dto.UserRoleDTO;
import cn.lystudio.rohm_time_op.entity.po.UsersPO;

import java.util.List;

public interface UserService {
    UsersPO getUserLogin(String userCode,String password);
    UsersPO get1User_Usable(String userCode);
    UserRoleDTO get1UserRole_Usable(String userCode);
    UserRoleDTO get1UserRole_Active();
    UserDepartmentDTO get1UserDepartment_Usable(String userCode);
    UserDepartmentDTO get1UserDepartment_Active();
    List<UserInfoDTO> getAllUserInfo(String keyword);
    int uptUserEnabled(Integer userID,Boolean enabled);
    int delUser(Integer userID);
    int addUser(UserInfoDTO userInfoDTO);
    int uptUser(UserInfoDTO userInfoDTO);
    int uptUserPwd(String userCode,String oldPassword,String newPassword);
}
